package cn.wolfcode.luowowo.acticle.mapper;

import cn.wolfcode.luowowo.acticle.domain.Destination;
import cn.wolfcode.luowowo.acticle.query.DestinationQueryObject;
import cn.wolfcode.luowowo.acticle.query.DestinationThemeQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Destination record);

    Destination selectByPrimaryKey(Long id);

    List<Destination> selectAll();

    int updateByPrimaryKey(Destination record);

    List<Destination> selectForList(DestinationQueryObject qo);

    List<Destination> selectDestinationByDeep(@Param("deep") Integer deep);

    void updateHotValue(@Param("hot") Integer hot, @Param("id") Long id);

    void updateInfo(@Param("info") String info, @Param("id") Long id);

    List<Destination> selectDestByIds(Long[] refIds);

    List<Destination> selectDestByParentId(long parentId);

    List<Destination> selectDestinationByDeepIs3();

    List<Destination> selectDestinationBy3Condition(DestinationThemeQueryObject qo);

    List<Destination> select6DestsByFavorHotel();

    List<Destination> selectHotStartPlacesInChina();

    List<Destination> selectDestLeterMapInChina();
}